var catalog = new vo.newObj({
	el : '#catalog-content',
	datas:{
		turn:false
	},
	methods:{
		load:function(datas){
			var parent = this;
			ajax({
				method:'GET',
				dataType:'XML',
				url:'article/catalog/'+id,
				success:function(resp){
					var obj = document.getElementById("hidden");
					obj.innerHTML += resp;
					parent.el.style.display="inline-block";
				},
				error:function(){
					throw new Error("目录加载失败");
				}
			});
		},
		turn:function(datas){
			if(this.get("turn")){
				document.getElementById("hidden").style.display = "none";
				this.el.getElementsByTagName("a")[0].innerHTML = "[+]";
				this.modify("turn",false);
			}else{
				document.getElementById("hidden").style.display = "block";
				this.el.getElementsByTagName("a")[0].innerHTML = "[-]";
				this.modify("turn",true);
			}
		}
	}
});
catalog.methods.load();